import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import router from './router'
import './uni.promisify.adaptor'
// 小程序分享的封装
import share from "./utils/share.js"

Vue.mixin(share)

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import * as Pinia from 'pinia';
import share from "./utils/share.js"
export function createApp() {
  const app = createSSRApp(App)
  // 在 Vue3 模式下使用 app.mixin()
  app.mixin(share)
  app.use(Pinia.createPinia());
  return {
    app,
    Pinia
  }
}
// #endif